package Resource;

public class Resource_Array {

	private static final int TYPE_BYTE		=0 ;
	private static final int TYPE_SHORT		=TYPE_BYTE+1 ;
	private static final int TYPE_CHAR		=TYPE_SHORT+1 ;
	private static final int TYPE_INT		=TYPE_CHAR+1 ;
	private static final int TYPE_LONG		=TYPE_INT+1 ;
	private static final int TYPE_FLOAT		=TYPE_LONG+1 ;
	private static final int TYPE_DOUBLE	=TYPE_FLOAT+1 ;
	
	
	private int type;	
	

	
/**
 * 	
 * @param newType
 * @return
 */			
	
public boolean setType(int newType)
{
	switch (newType)
	{
	case TYPE_BYTE:
	case TYPE_SHORT:
	case TYPE_CHAR:
	case TYPE_INT:
	case TYPE_LONG:
	case TYPE_FLOAT:
	case TYPE_DOUBLE:
		type=newType;	
		break;
		
		
		default:
		return(false);
	}

	return(true);
}
	
}
